Fix bug #18420 with deadlocks communicating with subprocess on MS-Windows.
authorEli Zaretskii <eliz@gnu.org>
Sun, 14 Sep 2014 15:18:39 +0000 (18:18 +0300)
committerEli Zaretskii <eliz@gnu.org>
Sun, 14 Sep 2014 15:18:39 +0000 (18:18 +0300)
commit36045f89bd058297edf63be72b35aa359afd0ba2
tree91e55c0c8173dd91cdf7cb5bda02bba2133ee5bb
parentcff6e9b1e312c45e702cf62d2a030e8ca9831227
Fix bug #18420 with deadlocks communicating with subprocess on MS-Windows.

 src/w32.c (fcntl): Support O_NONBLOCK fcntl on the write side of
 pipes.
 (sys_write): When a write to a non-blocking pipe returns ENOSPC,
 set errno to EAGAIN instead, to allow the caller to retry the
 write after some waiting.  Fixes deadlocks when Emacs exchanges a
 lot of data through the pipe.
src/ChangeLog
src/w32.c